#ifndef __MAP_SELECT
#define __MAP_SELECT

#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "HMenus.h"
#include <ActnList.hpp>
#include <Menus.hpp>
#include "BkList.h"
#include "HSpacer.h"
#include "TB97.hpp"
#include "TB97Ctls.hpp"
#include "TB97Tlwn.hpp"
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include "IvDictio.hpp"
#include "IvMulti.hpp"

class TMapSelectForm : public TForm {
  __published:
        TActionList *ActionList1;
        TAction *aAutoclose;
        TAction *aLoad;
        HPopupMenu *popupIndex;
        TMenuItem *R1;
        TMenuItem *N7;
        TMenuItem *L1;
        TMenuItem *N9;
        TMenuItem *A2;
        TToolWindow97 *Control;
        TPanel *Panel1;
        TToolbarButton97 *ToolbarButton971;
        TToolbarButton97 *ToolbarButton972;
        HSpacer *HSpacer1;
        TToolbarButton97 *ToolbarButton975;
        HBkList *list;
        THeaderControl *header;
        TAction *aClose;
        TIvTranslator *IvTranslator1;
        void __fastcall FormHide(TObject *Sender);
        void __fastcall aCloseExecute(TObject *Sender);
        void __fastcall ControlCloseQuery(TObject *Sender, bool &CanClose);
        bool __fastcall listDrawItemSection(TObject *Sender, TCanvas *dc,
          int Index, THeaderSection *Section, const MyRect &Rect,
          const TOwnerDrawState &State);
        void __fastcall aAutocloseExecute(TObject *Sender);
        void __fastcall aLoadExecute(TObject *Sender);
        void __fastcall popupIndexMenuItemCheck(TObject *Sender,
          TMenuItem *Item);
        void __fastcall ControlMinimize(TObject *Sender);
  private:
    MapArray Select;

  public:
    virtual void __fastcall WndProc(Messages::TMessage &Message);

  public:
    __fastcall TMapSelectForm(TComponent* Owner);

    void SetSelection( PTForm Owner, PMapSelection Select );
};

#endif
